﻿CloudStorageLight.StorageController.msgErrGeneral = "@(CloudStorageLight.Core.Web.ViewMessages.MsgGeneral)";
CloudStorageLight.StorageController.msgRoleSelectorTitle = "@(CloudStorageLight.Core.Web.ViewMessages.MsgRole)";
CloudStorageLight.StorageController.msgDownloadComplete = "@(CloudStorageLight.Core.Web.ViewMessages.MsgDownloadComplete)";
CloudStorageLight.StorageController.msgDownloadError = "@(CloudStorageLight.Core.Web.ViewMessages.MsgDownloadError)";
CloudStorageLight.StorageController.msgPleaseChecked = "@(CloudStorageLight.Core.Web.ViewMessages.MsgPleaseChecked)";
CloudStorageLight.StorageController.msgConfirmDelete = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmDelete)";
CloudStorageLight.StorageController.msgCmdNewFolder = "@(CloudStorageLight.Core.Web.ViewMessages.CmdNewFolder)";
CloudStorageLight.StorageController.msgCmdFolderSetup = "@(CloudStorageLight.Core.Web.ViewMessages.CmdFolderSetup)";
CloudStorageLight.StorageController.msgConfirmDeleteFolder = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmDeleteFolder)";
CloudStorageLight.StorageController.msgChangePassword = "@(CloudStorageLight.Core.Web.ViewMessages.MsgChangePassword)";
CloudStorageLight.StorageController.msgDownloading = "@(CloudStorageLight.Core.Web.ViewMessages.MsgDownloading)";
CloudStorageLight.StorageController.msgUploading = "@(CloudStorageLight.Core.Web.ViewMessages.MsgUploading)";
CloudStorageLight.StorageController.msgProcessing = "@(CloudStorageLight.Core.Web.ViewMessages.MsgProcessing)";
CloudStorageLight.StorageController.msgCancel = "@(CloudStorageLight.Core.Web.ViewMessages.MsgCancel)";
CloudStorageLight.StorageController.msgDuplicateRole = "@(CloudStorageLight.Core.Web.ViewMessages.MsgDuplicateRole)";

CloudStorageLight.StorageController.msgEditingOtherUser = "@(CloudStorageLight.Core.Web.ViewMessages.MsgEditingOtherUser)";
CloudStorageLight.StorageController.msgConfirmDownloadZip = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmDownloadZip)";
CloudStorageLight.StorageController.msgItemUrl = "@(CloudStorageLight.Core.Web.ViewMessages.MsgItemUrl)";
CloudStorageLight.StorageController.msgCmdRename = "@(CloudStorageLight.Core.Web.ViewMessages.CmdRename)";
CloudStorageLight.StorageController.msgCmdMove = "@(CloudStorageLight.Core.Web.ViewMessages.CmdMove)";
CloudStorageLight.StorageController.msgNotAuthorization = "@(CloudStorageLight.Core.Web.ViewMessages.MsgNotAuthorization)";
CloudStorageLight.StorageController.msgConfirmDeleteFile = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmDeleteFile)";
CloudStorageLight.StorageController.msgConfirmOverwriteUpload = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmOverwriteUpload)";
CloudStorageLight.StorageController.msgConfirmDeleteUser = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmDeleteUser)";

CloudStorageLight.StorageController.msgFoundItems = "@(CloudStorageLight.Core.Web.ViewMessages.MsgFoundItems)";
CloudStorageLight.StorageController.msgFoundOver = "@(CloudStorageLight.Core.Web.ViewMessages.MsgFoundOver)";
CloudStorageLight.StorageController.msgNotFound = "@(CloudStorageLight.Core.Web.ViewMessages.MsgNotFound)";
CloudStorageLight.StorageController.msgUpdateUserData = "@(CloudStorageLight.Core.Web.ViewMessages.MsgUpdateUserData)";
CloudStorageLight.StorageController.msgHistoryNotFound = "@(CloudStorageLight.Core.Web.ViewMessages.MsgHistoryNotFound)";
CloudStorageLight.StorageController.msgRecoverableFilesNotFound = "@(CloudStorageLight.Core.Web.ViewMessages.MsgRecoverableFilesNotFound)";
CloudStorageLight.StorageController.msgConfirmDeleteCompletelyFile = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmDeleteCompletelyFile)";
CloudStorageLight.StorageController.msgConfirmCompetelyDelete = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmCompetelyDelete)";
CloudStorageLight.StorageController.msgSuccess = "@(CloudStorageLight.Core.Web.ViewMessages.MsgSuccess)";
CloudStorageLight.StorageController.msgNoAccessLog = "@(CloudStorageLight.Core.Web.ViewMessages.MsgNoAccessLog)";
CloudStorageLight.StorageController.msgFileTransfer = "@(CloudStorageLight.Core.Web.ViewMessages.CmdFileTransfer)";
CloudStorageLight.StorageController.msgConfirmForceCheckin = "@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmForceCheckin)";
CloudStorageLight.StorageController.msgCanceled = "@(CloudStorageLight.Core.Web.ViewMessages.MsgCanceled)";
CloudStorageLight.StorageController.msg404Error = "@(CloudStorageLight.Core.Web.ViewMessages.Msg404Error)";

@{ 
    var rootFiles = Url.RouteUrl("files", new { id = "" }, this.Request.Url.Scheme);
    var rootBase = rootFiles.Substring(0, rootFiles.Length - 2);
}

CloudStorageLight.StorageController.rootUrl = '@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/").TrimEnd('/'))';
CloudStorageLight.StorageController.filesRootUrl = '@rootFiles';
CloudStorageLight.StorageController.webPartsRootUrl = '@Url.RouteUrl("webparts", new { id = "" }, this.Request.Url.Scheme)';
CloudStorageLight.StorageController.oDataRootUrl = '@(rootBase + "/odata")';
CloudStorageLight.StorageController.helperRootUrl = '@(rootBase + "/helper")';
CloudStorageLight.StorageController.accountRootUrl = '@(rootBase + "/account")';
CloudStorageLight.StorageController.workTaskRootUrl = '@(rootBase + "/t")';
